﻿@{
    ViewBag.Title = "FundEdit";
    Layout = "~/Areas/Admin/Views/Shared/_LayoutCMS.cshtml";
}
@section htmlhead{
    <link href="~/Content/editor/themes/default/default.css" rel="stylesheet" />
    <link href="~/Content/assets/css/Layout/css/main.css" rel="stylesheet" />
    <link href="~/Content/assets/css/plugin/validator.css" rel="stylesheet" />
    <link href="~/Content/assets/css/plugin/xjgrid.css" rel="stylesheet" />

    <script src="~/Content/assets/layer/layer.min.js"></script>
    <script src="~/Content/editor/kindeditor-min.js"></script>
    <script src="~/Content/editor/lang/zh_CN.js"></script>
}
@model LY.Entity.T_FundPrivate    
 <div class="container">

     <div id="forms" class="mt10">
        <div class="box">
          <div class="box_border">
            <div class="box_top"><b class="pl15">编辑基金信息</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;带“<span style="color:red;">*</span>”标识为必填项 </div>
            <div class="box_center">
              <form  id="frmEdit" method="post" action="@Url.Action("FundSave")" role="form" class="jqtransform">
                  <input id="hideId" name="ID" value="@Model.ID" type="hidden" />
                  <table class="form_table pt15 pb15" style="width: 100%;" border="0">
                      <tr>
                          <td class="td_right"><b style="color:red;">*&nbsp;&nbsp;</b>基金名称：</td>
                          <td class="">
                              <input type="text" id="FundName" name="FundName" value="@Model.FundName" maxlength="20" class="input-text lh30" size="40">
                          </td>
                      </tr>
                      <tr>
                          <td class="td_right"><b style="color:red;">*&nbsp;&nbsp;</b>基金公司：</td>
                          <td class="">
                              <input type="text" id="FundCompany" name="FundCompany" value="@Model.FundCompany" maxlength="20"  class="input-text lh30" size="40">
                          </td>
                      </tr>
                        <tr>
                          <td class="td_right"><b style="color:red;">*&nbsp;&nbsp;</b>产品等级：</td>
                          <td class="">
                              <input type="text" id="Grade" name="Grade" value="@Model.Grade" maxlength="5" onblur="ValidateGrade(this.value)"  class="input-text lh30" size="40"><span>用‘<span style="color:red;">★</span>’符号表示等级</span>
                          </td>
                      </tr>

                      <tr>
                          <td class="td_right"><b style="color:red;">*&nbsp;&nbsp;</b>风险提示：</td>
                          <td class="">
                              <input type="text" id="Riskcue" name="Riskcue" value="@Model.Riskcue" maxlength="100"  class="input-text lh30" size="120">
                          </td>
                      </tr>
                    
                      <tr>
                          <td class="td_right"><b style="color:red;">*&nbsp;&nbsp;</b>Web内容：★</td>
                          <td class="">
                                <input type="hidden" id="hideContent" name="FundContent" >
                                <textarea id="FundContent" rows="10" style="height: 260px; width: 90%">@Model.FundContent</textarea>
                          </td>
                      </tr>
                      <tr>
                          <td class="td_right"><b style="color:red;">*&nbsp;&nbsp;</b>App内容：</td>
                          <td class="">
                                <input type="hidden" id="hideAppContent" name="AppContent" >
                                <textarea id="AppContent" rows="10" style="height: 260px; width: 90%">@Model.AppContent</textarea>
                          </td>
                      </tr>
                      <tr>
                          <td class="td_right"><b style="color:red;">*&nbsp;&nbsp;</b>创建时间：</td>
                          <td class="">
                              <input type="text" id="CreateTime" onclick="WdatePicker()" name="CreateTime"  value="@Model.CreateTime" class="input-text lh30" size="40">
                          </td>
                      </tr>
                      <tr>
                          <td class="td_right">备注：</td>
                          <td class="">
                              <input type="text" id="Remark" name="Remark" value="@Model.Remark" maxlength="200"  class="input-text lh30" size="40">
                          </td>
                      </tr>
                      @*<tr>
                          <td class="td_right">负责人：</td>
                          <td class="">
                              @Html.ResourceDropDownList("FundID", "FundPeople", Model.FundID, new { @class="wh80 select"})
                          </td>
                      </tr>*@
                      <tr>
                          <td class="td_right"></td>
                          <td class=""></td>
                      </tr>
                      <tr>
                          <td class="td_center" colspan="5">
                              <input type="button" id="btnSave" name="button" style="margin-right: 50px;" class="btn btn82 btn_save2" value="保存">
                              <input type="button" id="btnReturn" name="button" class="btn btn82 btn_res" value="返回">
                          </td>
                      </tr>
                  </table>
               </form>
            </div>
          </div>
        </div>  
     </div>
   </div> 
@section jssection{
    <script type="text/javascript"> 

    //编辑器
    KindEditor.ready(function (K) {
        window.editor = K.create('textarea', {
            resizeType: 1,
            allowPreviewEmoticons: false,
            allowImageUpload: true,
            minWidth: 350,
            allowFileManager: true,
            afterBlur: function () {
                this.sync();
            }
            
        });
    });
    </script>    

    <script src="~/Content/assets/plugins/validator/validator.js"></script>
    <script src="~/Content/assets/js/common.js"></script>
    <script src="~/Content/assets/DatePicker/WdatePicker.js"></script>
    <script src="~/Content/assets/layer/layer.min.js"></script>
    <script src="~/Content/assets/app/Fund/fundedit.js"></script>

}

<script type="text/javascript">
    function ValidateGrade(val) {
        if (val.trim() == "") {
            return false;
        }
        if (val.trim() != "★" && val != "★★" && val != "★★★" && val != "★★★★" && val != "★★★★★") {
            $("#Grade").val("");
        }
    }
</script>
